//
//  Test9.cpp
//  CPPTest
//
//  Created by you5 Yi on 2021/9/13.
//

#include "Test9.hpp"
#include <iostream>
using namespace std;
const double PI = 3.1415;
double length(float r)//圆的周长
{
    return 2*PI*r;
}
double length(float x,float y)
{
    return 2*(x+y);
}

void test9() {
    float a=2,b=3,r=4;
    cout<<"圆周长"<<length(r)<<endl;
    cout<<"矩形周长"<<length(a, b)<<endl;
}
